package com.ruoyi.dynamic.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.dynamic.model.pojo.entity.Room;
import com.ruoyi.dynamic.model.pojo.entity.RoomMaiRecord;
import com.ruoyi.dynamic.model.pojo.entity.RoomRecord;
import com.ruoyi.dynamic.model.pojo.request.app.AppRoomSearchRequest;
import com.ruoyi.dynamic.model.pojo.request.app.AppRoomUserSearchRequest;
import com.ruoyi.dynamic.model.pojo.result.app.AppRoomInfoResult;
import com.ruoyi.dynamic.model.pojo.result.app.AppRoomUserInfoResult;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Set;

/**
 * <p>
 * 房间表 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2024-11-23
 */
public interface RoomMapper extends BaseMapper<Room> {

    /**
     * 分页搜索房间
     */
    Page<AppRoomInfoResult> listPage(@Param("param") AppRoomSearchRequest request, Page<Room> roomPage);

    /**
     * 房间在线用户列表
     */
    Page<AppRoomUserInfoResult> userListPage(@Param("param") AppRoomUserSearchRequest request, Page<RoomRecord> page, @Param("roomHeat") BigDecimal roomHeat, @Param("aimUserId") Long aimUserId);

}
